package com.group7.mall.convert;

import com.group7.mall.dto.SellerGoodsDetailDto;
import com.group7.mall.dto.UserAddressDto;
import com.group7.mall.entity.TbGoods;
import com.group7.mall.entity.TbUserAddress;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface UserAddressConverter {

    UserAddressConverter INSTANCE = Mappers.getMapper(UserAddressConverter.class);

    List<UserAddressDto> convertTbtUserAddressToUserAddressDto(List<TbUserAddress> tbUserAddressList);

    TbUserAddress convertUserAddressDtoToTbUserAddress(UserAddressDto addressDto);

    UserAddressDto converTbUserAddressToUserAddressDto(TbUserAddress tbUserAddress);
}
